package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 节点分组关系表 实体类
 * 表名：ra_node_group
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_node_group")
public class RaNodeGroup implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 节点主键
     */
    @Column(name = "node_id", nullable = false)
    private Long nodeId;
    
    /**
     * 分组主键
     */
    @Column(name = "group_id", nullable = false)
    private Long groupId;
    
    /**
     * 是否默认（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_default")
    private Byte isDefault;
    
    @Override
    public String toString() {
        return "RaNodeGroup{" +
            "id=" + id +
            ", nodeId=" + nodeId +
            ", groupId=" + groupId +
            ", isDefault=" + isDefault +
        '}';
    }
} 